﻿@model IEnumerable<FMIS.Models.Coach>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Default.cshtml";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.CoachesId)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Person.PersonFirstName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CoachesFisrtName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CoachesLastName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CoachesFullName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Status)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.License)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.LicenseReceivingYear)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.SeniorCoach)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.YouthCoach)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.JerseySize)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ShoeSize)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Agent.PersonFistName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Comment)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ClubName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.StartDate)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CoachLevel)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PublicComment)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CoachesCode)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.CoachesId)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Person.PersonFirstName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CoachesFisrtName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CoachesLastName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CoachesFullName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Status)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.License)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.LicenseReceivingYear)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.SeniorCoach)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.YouthCoach)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.JerseySize)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ShoeSize)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Agent.PersonFistName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Comment)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ClubName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.StartDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CoachLevel)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PublicComment)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CoachesCode)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
        </td>
    </tr>
}

</table>
